/**
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 {% set class_cases = [
    {
        'type_declaration': 'class ReturnClass {}',
        'type': 'ReturnClass',
        'value': 'new ReturnClass()'
    }
 ]%}

 {% set enum_cases = [
    {
        'type_declaration': 'enum Color{ Red, Green, Blue }',
        'type': 'Color',
        'value': 'Color.Red'
    }
 ]%}
 
 {% set function_cases = [
    {
        'type_declaration': 'async function getFunction(): Promise<(name: string) => string>{return (name: string): string => `Hello, ${name}!`}',
        'type': 'Function',
        'value': 'getFunction'
    }
 ]%}
 
 {% set tuple_cases = [
    {
        'type_declaration': 'type MyTuple = [string, number]',
        'type': 'MyTuple',
        'value': '["Hello", 42]'
    }
 ]%}
 
 {% set union_cases = [
    {
        'type_declaration': 'type MyUnion = string | number',
        'type': 'MyUnion',
        'value': '"Hello"'    
    }
 ]%}